const path = require('path')
const CracoLessPlugin = require('craco-less')

// https://www.npmjs.com/package/@craco/craco
module.exports = {
  webpack: {
    alias: {
      '@': path.resolve(__dirname, 'src')
    },
  },
  plugins: [
    {
      plugin: CracoLessPlugin,
      options: {
        lessLoaderOptions: {
          lessOptions: {
            modifyVars: {
              '@primary-color': '#00D05E',
              '@btn-height-base': '36px',
              '@btn-height-lg': '44px'
            },
            javascriptEnabled: true
          }
        }
      }
    }
  ]
}
